//区域的小仓库
import storage from "@/utils/storage";
export default {
  namespaced: true,
  mutations: {
    // 提交城市名和id
    SET_AREA(state, { label, value }) {
      state.city = label;
      state.id = value;
      storage.set("city", label);
      storage.set("id", value);
    },
  },
  state: {
    // 存储城市名和城市id   设定默认值
    city: storage.get("city") || "北京",
    id: storage.get("id") || "AREA|88cff55c-aaa4-e2e0",
  },
};
